<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Event</title>
<!--
<script src="ymusic.js" type="text/javascript"></script>
-->

<script type="text/javascript">
    //window.YAHOO = {test:"test"};
    //YAHOO = {test:"test"};
    var YAHOO = {test:"test"};

    //alert("1) YAHOO.Video.defaultClientID: " + YAHOO.Video.defaultClientID);

</script>



<script src="../src/js/YAHOO.js" type="text/javascript"></script>

<script type="text/javascript">

    //alert("2) YAHOO.Video.defaultClientID: " + YAHOO.Video.defaultClientID);

</script>


<style type="text/css">
    #linkContainer {
        position: relative;
        padding: 10px;
        border: 1px solid #333333;
        height: 300px;
        width: 150px;
    }
</style>

<script type="text/javascript">


    var a = YAHOO.namespace("really.nested.namespace");
    // var a = YAHOO.namespace("adamphillipmoore.nested.deeper");

    YAHOO.namespace("namespace2");
    YAHOO.namespace2.A = "HERE";

    YAHOO.really.nested.namespace.init = function() {
    //YAHOO.adamphillipmoore.nested.deeper.init = function() {
        alert("worked");
    } 


</script>

<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>

<script type="text/javascript">

    //window.onload = YAHOO.adamphillipmoore.nested.deeper.init;
    window.onload = YAHOO.really.nested.namespace.init;
    alert(YAHOO.namespace2.A);

    //alert("YAHOO.Video.defaultClientID: " + YAHOO.Video.defaultClientID);
    alert("YAHOO.test: " + YAHOO.test);

</script>

<body>

<a href="javascript:;">Does nothing</a>
<div id="linkContainer">
  <h3>Header does nothing</h3>
</div>
<input id="addButton" type="button" value="Add link" />
</body>

</html>

